package com.yidu.qianfeng.service.impl;

import com.yidu.qianfeng.common.bean.client.Consignee;
import com.yidu.qianfeng.common.bean.client.Shipper;
import com.yidu.qianfeng.mapper.ConsigneeMapper;
import com.yidu.qianfeng.mapper.ShipperMapper;
import com.yidu.qianfeng.service.CustService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: TangSheng
 * @Description: 顾客用户业务实现类
 * @Date Created in 9:22 2021/3/18
 * @since 1.0
 */

@Service("custServiceImpl")
public class CustServiceImpl implements CustService {

    @Resource(name = "shipperMapper")
    private ShipperMapper shipperMapper;

    @Resource(name = "consigneeMapper")
    private ConsigneeMapper consigneeMapper;


    @Override
    public List<Shipper> queryShipperList() {
        return shipperMapper.selectList(null);
    }

    @Override
    public List<Consignee> queryConsigneeList() {
        return consigneeMapper.selectList(null);
    }

}
